package com.zmzncs.lmtc.module.customer.service.impl;

import com.zmzncs.lmtc.module.customer.pojo.cust_info.CustInfo;
import com.zmzncs.lmtc.module.customer.dao.CustInfoDao;
import com.zmzncs.lmtc.module.customer.pojo.cust_info.CustInfoDTO;
import com.zmzncs.lmtc.module.customer.service.CustInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 客户-客户信息 服务实现类
 * </p>
 *
 * @author 任建波
 * @since 2020-10-12
 */
@Service
public class CustInfoServiceImpl extends ServiceImpl<CustInfoDao, CustInfo> implements CustInfoService {

    @Autowired
    private CustInfoDao custInfoDao;

    @Override
    public List<CustInfoDTO> getCustInfoByPhoneOrName(String info) {
        return custInfoDao.getCustInfoByPhoneOrName(info);
    }
}
